package com.my.hotel.service;

import com.my.hotel.entity.serverPage.JdUser;
import com.my.hotel.util.ILog;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.List;

public interface JdUserService {
    List<JdUser> getList();

    void register(JdUser user, HttpSession session,String varifyCode,HttpServletRequest req);
    void delClient(int delId);
    JdUser getClientById(int id);
    void clientUpdate(JdUser user);
    boolean isLogin(String dl_username,String dl_password,HttpSession session);
    int getCountByUsername(String username);
//    int getCountByName(String username);

    public JdUser cklogin(String username);
}
